//
//  QQAutoSizeLabel.h
//  Test
//
//  Created by mac  on 14-6-28.
//  Copyright (c) 2014年 qiuyan. All rights reserved.
//

#import <UIKit/UIKit.h>
#import "UIView+ITTAdditions.h"

@interface CusLab : UILabel @end

@interface QQAutoSizeLabel : UIView

@property (nonatomic, copy) void (^hotTagClickBlock)(NSUInteger currentIndex,CusLab *label);
@property (nonatomic, copy) void (^hotTagNameBlock)(NSString *tagName,CusLab *label);
@property (nonatomic, copy) void (^containViewHeightBlock)(float height);


@property (nonatomic, copy) void (^hotCartTagClickBlock)(CGRect Rect,NSUInteger currentIndex);

-(void)setHotViewWithArray:(NSArray*)resultArray andSampleLabelFont:(CGFloat)fontSize height:(CGFloat)labelHeight;

- (CGFloat) containHeight;

- (void) setSelectAtIndex:(NSInteger)index;

-(void)setSearchHotViewWithArray:(NSArray*)resultArray andSampleLabelFont:(CGFloat)fontSize height:(CGFloat)labelHeight;

-(void)setCartHotViewWithArray:(NSArray*)resultArray andSampleLabelFont:(CGFloat)fontSize height:(CGFloat)labelHeight andProductId:(NSString  *)productId;
@end
